<?php if($this->categories): ?>
    <ul>
    <?php foreach($this->categories as $cat):?>
    <li>
        <a href="<?php
            echo $this->url(
                array('module' => 'catalog',
                      'controller'=>'category',
                      'action'=>'index',
                      'category_id'=>$cat['id']),
                'default', true)
                ?>"
                ><?php echo $cat['title']; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>
<?php endif; ?>

<?php if(count($this->products)): ?>
<?php $i = 0; ?>
<?php foreach($this->products as $product):?>
<?php $i++; ?>
<div class="product-column-<?php echo $i ?>">
<?php echo $this->partial('product-partial.phtml', 'catalog', array('product'=>$product,
                                                                    'column'=>$i)); ?>
</div>
<?php if ($i == 2) $i = 0; ?>
<?php endforeach; ?>
<?php endif;?>

<?php echo $this->paginationControl($this->products); ?>

